﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Structure.DecoratorPattern;

namespace dpdw.testing.Structure
{
    [TestClass]
    public class TestDecoratorPattern
    {
        [TestMethod]
        public void TestDecoratorPatternMethod1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestDecoratorPatternMethod1");

            Beverage beverage = new Espresso();
            System.Diagnostics.Trace.WriteLine(
                beverage.Description + " " + beverage.Cost().ToString());

            Beverage house = new HouseBlend();
            System.Diagnostics.Trace.WriteLine(
                house.Description + " " + house.Cost().ToString());

            Beverage mocha = new Mocha(house);
            System.Diagnostics.Trace.WriteLine(
                mocha.Description + " " + mocha.Cost().ToString());
        }
    }
}
